<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="mobi001 v6.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="logo.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="themes/default/css/shop_lc.css" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,shopping_flow.js')); ?>
</head>
<body>
<div id="warper">
<?php echo $this->fetch('library/page_header.lbi'); ?>
<div class="menu"><?php echo $this->fetch('library/ur_here.lbi'); ?></div>
<div class="gwlc">
<?php if ($this->_var['step'] == "cart"): ?>


  <?php echo $this->smarty_insert_scripts(array('files'=>'showdiv.js')); ?>
  <script type="text/javascript">
  <?php $_from = $this->_var['lang']['password_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
    var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th align="left" height="30">商品列表</th>
  </tr>
  <tr>
    <td>
<form id="formCart" name="formCart" method="post" action="flow.php">
    <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#bbbbbb">
  <tr bgcolor="#f7f7f7">
    <td height="30" align="center"  width="270">商品名称</td>
    <td align="center" width="200">价格</td>
    <td align="center" width="100">购买数量</td>
    <td align="center" width="200">小计</td>
    <td align="center">操作</td>
  </tr>
  <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
  <tr>
    <td>
    <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10"></td>
      </tr>
      <tr>
        <td align="center"><a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" border="0" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" width="100" /></a></td>
      </tr>
      <tr>
        <td height="20" align="center"><a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a></td>
      </tr>
      <tr>
        <td height="10"></td>
      </tr>
    </table>
        <?php endif; ?></td>
    <td align="center"><?php echo $this->_var['goods']['goods_price']; ?></td>
    <td align="center">
       <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['is_gift'] == 0 && $this->_var['goods']['parent_id'] == 0): ?>
                <input type="text" name="goods_number[<?php echo $this->_var['goods']['rec_id']; ?>]" id="goods_number_<?php echo $this->_var['goods']['rec_id']; ?>" value="<?php echo $this->_var['goods']['goods_number']; ?>" size="4" class="inputBg" style="text-align:center " onkeydown="showdiv(this)"/>
                <?php else: ?>
                <?php echo $this->_var['goods']['goods_number']; ?>
                <?php endif; ?>
    </td>
    <td align="center"><?php echo $this->_var['goods']['subtotal']; ?></td>
    <td align="center">   <a href="javascript:if (confirm('<?php echo $this->_var['lang']['drop_goods_confirm']; ?>')) location.href='flow.php?step=drop_goods&amp;id=<?php echo $this->_var['goods']['rec_id']; ?>'; "><?php echo $this->_var['lang']['drop']; ?></a>
                <?php if ($_SESSION['user_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?>
                <a href="javascript:if (confirm('<?php echo $this->_var['lang']['drop_goods_confirm']; ?>')) location.href='flow.php?step=drop_to_collect&amp;id=<?php echo $this->_var['goods']['rec_id']; ?>'; "><?php echo $this->_var['lang']['drop_to_collect']; ?></a>
                <?php endif; ?>   </td>
  </tr>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  <tr>
    <td colspan="5"align="right" height="40">
       <input type="button" value="<?php echo $this->_var['lang']['clear_cart']; ?>" class="btn_1" onclick="location.href='flow.php?step=clear'" />&nbsp; 
       <input name="submit" type="submit" class="btn_1" value="<?php echo $this->_var['lang']['update_cart']; ?>" />&nbsp;&nbsp;
      </td>
    </tr>
</table>
<input type="hidden" name="step" value="update_cart" />
</form>
</td>
  </tr>
  <tr>
  <td height="15"></td>
  </tr>
   <tr>
    <td align="right" height="40" style="line-height:20px">
    <a href="./" style="padding:5px 10px;color:#ffffff;background:#cf1918">继续购物</a>&nbsp;
   <a href="flow.php?step=checkout"  style="padding:5px 15px;color:#ffffff;background:#cf1918;">结算中心</a>&nbsp;&nbsp;</td>
  </tr>
</table>

<?php if ($_SESSION['user_id'] > 0): ?>
       <?php echo $this->smarty_insert_scripts(array('files'=>'transport.js')); ?>
       <script type="text/javascript" charset="utf-8">
        function collect_to_flow(goodsId)
        {
          var goods        = new Object();
          var spec_arr     = new Array();
          var fittings_arr = new Array();
          var number       = 1;
          goods.spec     = spec_arr;
          goods.goods_id = goodsId;
          goods.number   = number;
          goods.parent   = 0;
          Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), collect_to_flow_response, 'POST', 'JSON');
        }
        function collect_to_flow_response(result)
        {
          if (result.error > 0)
          {
            // 如果需要缺货登记，跳转
            if (result.error == 2)
            {
              if (confirm(result.message))
              {
                location.href = 'user.php?act=add_booking&id=' + result.goods_id;
              }
            }
            else if (result.error == 6)
            {
              openSpeDiv(result.message, result.goods_id);
            }
            else
            {
              alert(result.message);
            }
          }
          else
          {
            location.href = 'flow.php';
          }
        }
      </script>
        <?php endif; ?>
  <?php endif; ?>       


 <?php if ($this->_var['step'] == "login"): ?>
        <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js,user.js')); ?>
        <script type="text/javascript">
        <?php $_from = $this->_var['lang']['flow_login_register']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
          var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

        
        function checkLoginForm(frm) {
          if (Utils.isEmpty(frm.elements['username'].value)) {
            alert(username_not_null);
            return false;
          }

          if (Utils.isEmpty(frm.elements['password'].value)) {
            alert(password_not_null);
            return false;
          }

          return true;
        }

        function checkSignupForm(frm) {
          if (Utils.isEmpty(frm.elements['username'].value)) {
            alert(username_not_null);
            return false;
          }

          if (Utils.trim(frm.elements['username'].value).match(/^\s*$|^c:\\con\\con$|[%,\'\*\"\s\t\<\>\&\\]/))
          {
            alert(username_invalid);
            return false;
          }

          if (Utils.isEmpty(frm.elements['email'].value)) {
            alert(email_not_null);
            return false;
          }

          if (!Utils.isEmail(frm.elements['email'].value)) {
            alert(email_invalid);
            return false;
          }

          if (Utils.isEmpty(frm.elements['password'].value)) {
            alert(password_not_null);
            return false;
          }

          if (frm.elements['password'].value.length < 6) {
            alert(password_lt_six);
            return false;
          }

          if (frm.elements['password'].value != frm.elements['confirm_password'].value) {
            alert(password_not_same);
            return false;
          }
          return true;
        }
        
        </script>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th height="35" align="left" width="390">用户登录</th>
    <th>&nbsp;</th>
    <th align="left" width="390">用户注册</th>
  </tr>
  <tr>
    <td>
    <form action="flow.php?step=login" method="post" name="loginForm" id="loginForm" onsubmit="return checkLoginForm(this)"><table width="100%" border="1" cellspacing="0" cellpadding="0" align="left" bordercolor="#bbbbbb">
      <tr>
        <td height="35" width="100" bgcolor="#f7f7f7" align="right">用户名：</td>
        <td>&nbsp;&nbsp;<input name="username" type="text"  id="username" class="txt_1"/></td>
      </tr>
      <tr>
        <td height="35"  bgcolor="#f7f7f7" align="right">密码：</td>
        <td>&nbsp;&nbsp;<input name="password" type="password" class="txt_1" /></td>
      </tr>
      <tr>
        <td colspan="2" height="35">&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="checkbox" value="1" name="remember" id="remember" style="border:none"/><label for="remember">请保存我这次的登录信息</label>
        </td>
      </tr>
      <tr>
        <td colspan="2" height="35" align="center"><a href="user.php?act=get_password" >找回密码</a></td>
      </tr>
      <tr>
        <td colspan="2" height="45" align="center">
         <input type="submit" class="btn_3" name="login" value="<?php echo $this->_var['lang']['forthwith_login']; ?>" />
          <?php if ($this->_var['anonymous_buy'] == 1): ?>
          <input type="button" class="btn_3" value="<?php echo $this->_var['lang']['direct_shopping']; ?>" onclick="location.href='flow.php?step=consignee&amp;direct_shopping=1'" />
           <?php endif; ?>
          <input name="act" type="hidden" value="signin" />
        </td>
      </tr>
    </table>
    </form>
    </td>
    <td>&nbsp;</td>
    <td>
    <form action="flow.php?step=login" method="post" name="formUser" id="registerForm" onsubmit="return checkSignupForm(this)">
    <table width="100%" border="1" cellspacing="0" cellpadding="0" align="left" bordercolor="#bbbbbb">
      <tr>
        <td height="35" width="100" bgcolor="#f7f7f7" align="right">用户名：</td>
        <td>&nbsp;&nbsp;<input name="username" type="text" class="txt_1" id="username" onblur="is_registered(this.value);" /><br />
            <span id="username_notice" style="color:#FF0000"></span></td>
      </tr>
      <tr>
        <td height="35"  bgcolor="#f7f7f7" align="right">电子邮件地址：</td>
        <td>&nbsp;&nbsp;<input name="email" type="text" class="txt_1" id="email" onblur="checkEmail(this.value);" /><br />
            <span id="email_notice" style="color:#FF0000"></span></td>
      </tr>
       <tr>
        <td height="35"  bgcolor="#f7f7f7" align="right">密码：</td>
        <td>&nbsp;&nbsp;<input name="password" class="txt_1" type="password" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" /><br />
            <span style="color:#FF0000" id="password_notice"></span></td>
      </tr>
       <tr>
        <td height="35"  bgcolor="#f7f7f7" align="right">确认密码：</td>
        <td>&nbsp;&nbsp;<input name="confirm_password" class="txt_1" type="password" id="confirm_password" onblur="check_conform_password(this.value);" /><br />
            <span style="color:#FF0000" id="conform_password_notice"></span></td>
      </tr>
      <tr>
        <td colspan="2" height="45" align="center">
       <input type="submit" name="Submit" class="btn_3" value="注册新用户" />
        <input name="act" type="hidden" value="signup" /></td>
      </tr>
    </table>
    </form>
    </td>
  </tr>
</table>
  <?php endif; ?>

 <?php if ($this->_var['step'] == "consignee"): ?>
      
        <?php echo $this->smarty_insert_scripts(array('files'=>'region.js,utils.js')); ?>
        <script type="text/javascript">
          region.isAdmin = false;
          <?php $_from = $this->_var['lang']['flow_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
          var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
          <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

          
          onload = function() {
            if (!document.all)
            {
              document.forms['theForm'].reset();
            }
          }
          
        </script>
         
        <?php $_from = $this->_var['consignee_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('sn', 'consignee');if (count($_from)):
    foreach ($_from AS $this->_var['sn'] => $this->_var['consignee']):
?>
        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkConsignee(this)">
        <?php echo $this->fetch('library/consignee.lbi'); ?>
        </form>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        <?php endif; ?>


   <?php if ($this->_var['step'] == "checkout"): ?>
        <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
        <script type="text/javascript">
        var flow_no_payment = "<?php echo $this->_var['lang']['flow_no_payment']; ?>";
        var flow_no_shipping = "<?php echo $this->_var['lang']['flow_no_shipping']; ?>";
        </script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th height="35" align="left">商品列表</th>
  </tr>
  <tr>
    <td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#bbbbbb" align="left">
  <tr>
    <td height="35" width="330" bgcolor="#f7f7f7" align="center">商品名称</td>
    <td width="260" bgcolor="#f7f7f7" align="center">商品价格</td>
    <td width="180" bgcolor="#f7f7f7" align="center">购买数量</td>
    <td bgcolor="#f7f7f7" align="center">小计</td>
  </tr>
  <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
  <tr>
    <td height="35" align="center"  style="color:#ff6600">
      <?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?>
          <a href="javascript:void(0)" onclick="setSuitShow(<?php echo $this->_var['goods']['goods_id']; ?>)" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a>
          <?php else: ?>
          <a href="goods.php?id=<?php echo $this->_var['goods']['goods_id']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a>
          <?php endif; ?>
          </td>
    <td  align="center"><?php echo $this->_var['goods']['formated_goods_price']; ?></td>
    <td  align="center"><?php echo $this->_var['goods']['goods_number']; ?></td>
    <td  align="center"><?php echo $this->_var['goods']['formated_subtotal']; ?></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  <tr>
    <td height="30" colspan="4" align="right"><b> 
    <?php if ($this->_var['allow_edit_cart']): ?><a href="flow.php">修改 >></a><?php endif; ?></b>&nbsp;&nbsp;</td>
    </tr>
</table>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th height="35" align="left">收货人信息</th>
  </tr>
  <tr>
    <td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" align="left" bordercolor="#bbbbbb">
  <tr>
    <td height="35" bgcolor="#f7f7f7" align="right">收货人姓名：</td>
    <td><p><?php echo htmlspecialchars($this->_var['consignee']['consignee']); ?></p></td>
    <td width="145" bgcolor="#f7f7f7" align="right">电子邮件地址：</td>
    <td><p><?php echo htmlspecialchars($this->_var['consignee']['email']); ?></p></td>
  </tr>
   <?php if ($this->_var['total']['real_goods_count'] > 0): ?>
  <tr>
    <td height="35" bgcolor="#f7f7f7" align="right">详细地址：</td>
    <td><p><?php echo htmlspecialchars($this->_var['consignee']['address']); ?></p></td>
    <td bgcolor="#f7f7f7" align="right">邮政编码：</td>
    <td><p><?php echo htmlspecialchars($this->_var['consignee']['zipcode']); ?></p></td>
  </tr>
   <?php endif; ?>
  <tr>
    <td height="35" bgcolor="#f7f7f7" align="right">电话：</td>
    <td><p><?php echo $this->_var['consignee']['tel']; ?></p></td>
    <td bgcolor="#f7f7f7" align="right">手机：</td>
    <td><p><?php echo htmlspecialchars($this->_var['consignee']['mobile']); ?></p></td>
  </tr>
   <?php if ($this->_var['total']['real_goods_count'] > 0): ?>
  <tr>
    <td height="35" bgcolor="#f7f7f7" align="right">标志建筑：</td>
    <td><p><?php echo htmlspecialchars($this->_var['consignee']['sign_building']); ?></p></td>
    <td bgcolor="#f7f7f7" align="right">最佳送货时间：</td>
    <td><p><?php echo htmlspecialchars($this->_var['consignee']['best_time']); ?></p></td>
  </tr>
   <?php endif; ?>
   <tr>
   <td height="30" colspan="4" align="right"><b><a href="flow.php?step=consignee">修改 >></a></b>&nbsp;&nbsp;</td>
    </tr>
</table>
    </td>
  </tr>
</table>
    <?php if ($this->_var['total']['real_goods_count'] != 0): ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" id="shippingTable">
  <tr>
    <th height="35" align="left">配送方式</th>
  </tr>
  <tr>
    <td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#bbbbbb" align="left">
  <tr>
    <td height="35" width="55">&nbsp;</td>
    <td width="150" bgcolor="#f7f7f7" align="center">名称</td>
    <td width="370" bgcolor="#f7f7f7" align="center">配送描述</td>
    <td width="120" bgcolor="#f7f7f7" align="center">费用</td>
    <td width="120" bgcolor="#f7f7f7" align="center">免费额度</td>
    <td bgcolor="#f7f7f7" align="center">保价费用</td>
  </tr>
  <?php $_from = $this->_var['shipping_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'shipping');if (count($_from)):
    foreach ($_from AS $this->_var['shipping']):
?>
  <tr>
    <td height="50" align="center">
    <input name="shipping" type="radio" value="<?php echo $this->_var['shipping']['shipping_id']; ?>" <?php if ($this->_var['order']['shipping_id'] == $this->_var['shipping']['shipping_id']): ?>checked="true"<?php endif; ?> supportCod="<?php echo $this->_var['shipping']['support_cod']; ?>" insure="<?php echo $this->_var['shipping']['insure']; ?>" onclick="selectShipping(this)" class="check"/> </td>
    <td align="center"><?php echo $this->_var['shipping']['shipping_name']; ?></td>
    <td><p><?php echo $this->_var['shipping']['shipping_desc']; ?></p></td>
    <td align="center"><?php echo $this->_var['shipping']['format_shipping_fee']; ?></td>
    <td align="center"><?php echo $this->_var['shipping']['free_money']; ?></td>
    <td align="center"><?php if ($this->_var['shipping']['insure'] != 0): ?><?php echo $this->_var['shipping']['insure_formated']; ?><?php else: ?><?php echo $this->_var['lang']['not_support_insure']; ?><?php endif; ?></td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
  <tr>
    <td height="40" colspan="6" align="right"><label for="ECS_NEEDINSURE">
                <input name="need_insure" id="ECS_NEEDINSURE" type="checkbox"  onclick="selectInsure(this.checked)" value="1" <?php if ($this->_var['order']['need_insure']): ?>checked="true"<?php endif; ?> <?php if ($this->_var['insure_disabled']): ?>disabled="true"<?php endif; ?> style="border:none"  /> 配送是否需要保价</label>&nbsp;
      </td>
    </tr>
</table>
    </td>
  </tr>
</table>  
 <?php else: ?>
        <input name = "shipping" type="radio" value = "-1" checked="checked"  style="display:none"/>
        <?php endif; ?>
 <?php if ($this->_var['is_exchange_goods'] != 1 || $this->_var['total']['real_goods_count'] != 0): ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th height="35" align="left">支付方式</th>
  </tr>
  <tr>
    <td valign="top">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#bbbbbb" align="left" id="paymentTable">
  <tr>
    <td height="35" width="55">&nbsp;</td>
    <td width="150" bgcolor="#f7f7f7" align="center">名称</td>
    <td width="370" bgcolor="#f7f7f7" align="center">订购描述</td>
    <td width="120" bgcolor="#f7f7f7" align="center">手续费</td>
  </tr>
  <?php $_from = $this->_var['payment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'payment');if (count($_from)):
    foreach ($_from AS $this->_var['payment']):
?>
            
  <tr>
    <td height="50" align="center"><input type="radio" name="payment" value="<?php echo $this->_var['payment']['pay_id']; ?>" <?php if ($this->_var['order']['pay_id'] == $this->_var['payment']['pay_id']): ?>checked<?php endif; ?> isCod="<?php echo $this->_var['payment']['is_cod']; ?>" onclick="selectPayment(this)" class="check" <?php if ($this->_var['cod_disabled'] && $this->_var['payment']['is_cod'] == "1"): ?>disabled="true"<?php endif; ?>/> </td>
    <td align="center"><?php echo $this->_var['payment']['pay_name']; ?></td>
    <td style="line-height:20px"><p><?php echo $this->_var['payment']['pay_desc']; ?></p></td>
    <td align="center"><?php echo $this->_var['payment']['format_pay_fee']; ?></td>
  </tr>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
    </td>
  </tr>
</table>
 <?php else: ?>
        <input name = "payment" type="radio" value = "-1" checked="checked"  style="display:none"/>
    <?php endif; ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th height="35" align="left">其他信息</th>
  </tr>
  <tr>
    <td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" align="left" bordercolor="#bbbbbb">
  <tr>
    <td width="120" height="80" align="right" bgcolor="#f7f7f7">订单附言：</td>
    <td>&nbsp;&nbsp;<textarea name="postscript" id="postscript" class="txt_2"><?php echo htmlspecialchars($this->_var['order']['postscript']); ?></textarea></td>
  </tr>
  <?php if ($this->_var['how_oos_list']): ?>
  <tr>
    <td height="30" align="right" bgcolor="#f7f7f7">缺货处理：</td>
    <td>&nbsp;<?php $_from = $this->_var['how_oos_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('how_oos_id', 'how_oos_name');if (count($_from)):
    foreach ($_from AS $this->_var['how_oos_id'] => $this->_var['how_oos_name']):
?>
                <label>
                <input name="how_oos" type="radio" value="<?php echo $this->_var['how_oos_id']; ?>" <?php if ($this->_var['order']['how_oos'] == $this->_var['how_oos_id']): ?>checked<?php endif; ?> onclick="changeOOS(this)" style="border:none" />
                <?php echo $this->_var['how_oos_name']; ?></label>
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
   </td>
  </tr>
     <?php endif; ?>
</table>

    </td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th height="35" align="left">费用总计</th>
  </tr>
  <tr>
    <td>
 <?php echo $this->fetch('library/order_total.lbi'); ?>
    </td>
  </tr>
   <tr>
  <td height="10" align="center"></td>
  </tr>
  <tr>
  <td height="50" align="center">
  <input type="submit" value="提交订单" class="btn_2" />
  <input type="hidden" name="step" value="done" />
  </td>
  </tr>
</table>
 </form>
   <?php endif; ?>



<?php if ($this->_var['step'] == "done"): ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  <tr>
    <th align="center" height="50">感谢您在本店购物！您的订单已提交成功，请记住您的订单号: <b style="color:#cf1715"><?php echo $this->_var['order']['order_sn']; ?></b></th>
  </tr>
  <tr>
    <td><table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#bbbbbb">
  <tr>
    <td height="40" align="center">
     <?php if ($this->_var['order']['shipping_name']): ?><?php echo $this->_var['lang']['select_shipping']; ?>: <b><?php echo $this->_var['order']['shipping_name']; ?></b>，<?php endif; ?><?php echo $this->_var['lang']['select_payment']; ?>: <b><?php echo $this->_var['order']['pay_name']; ?></b>。<?php echo $this->_var['lang']['order_amount']; ?>: <b><?php echo $this->_var['total']['amount_formated']; ?></b>
  </td>
  </tr>
  <tr>
    <td height="40" align="center"><p style="text-align:center;line-height:20px"><?php echo $this->_var['order']['pay_desc']; ?></p></td>
  </tr>
  <?php if ($this->_var['pay_online']): ?>
      
       <tr>
        <td align="center" height="35"><?php echo $this->_var['pay_online']; ?></td>
       </tr>
 <?php endif; ?>
</table>
</td>
  </tr>
</table>
   <?php endif; ?>

</div>

 <?php echo $this->fetch('library/help.lbi'); ?>



<?php echo $this->fetch('library/page_footer.lbi'); ?>

</div>
</body>
<script type="text/javascript">
var process_request = "<?php echo $this->_var['lang']['process_request']; ?>";
<?php $_from = $this->_var['lang']['passport_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
var username_exist = "<?php echo $this->_var['lang']['username_exist']; ?>";
var compare_no_goods = "<?php echo $this->_var['lang']['compare_no_goods']; ?>";
var btn_buy = "<?php echo $this->_var['lang']['btn_buy']; ?>";
var is_cancel = "<?php echo $this->_var['lang']['is_cancel']; ?>";
var select_spe = "<?php echo $this->_var['lang']['select_spe']; ?>";
</script>
</html>

